/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package _bai02_phantichphankhaibao;

/**
 * Các chuổi định dạng (RegEx) cho tên biến, kiểu dữ liệu...
 * @author Administrator
 */
public enum jEnum_ChuoiDinhDang {
    TenBien ("[A-Za-z0-9_]+"),
    TenHam ("[A-Za-z0-9_]+"),
    KieuDuLieu ("[A-Za-z0-9_]+\\*?"),
    GiaTri ("(([A-Za-z0-9_]+(\\[[A-Za-z0-9_]+(\\s*(\\+|-|\\*|/|%)\\s*[A-Za-z0-9_])*\\])?)|(\".*+\")|('.'))(\\s*(\\+|-|\\*|/|%)\\s*((([A-Za-z0-9_]+(\\[[A-Za-z0-9]+(\\s*(\\+|-|\\*|/|%)\\s*[A-Za-z0-9_])\\])?)|(\".*+\")|('.'))))*"),
    //GiaTri ("((\"?[A-Za-z0-9_]+\"?)|('.'))"),//co the la ten bien, chuoi, ky tu...
    //GiaTri ("\\[[A-Za-z0-9]+\\]"),//co the la ten bien, chuoi, ky tu...
    CacToanTuLogic  ("((<>)|>=?|<=?|=)"),
    CacKieuDuLieuDuocHoTro("(B|Char|N|R|N1?)\\*?");

    private final String value;

    jEnum_ChuoiDinhDang(String value) {
        this.value = value;
    }

    String value(){
        return this.value;
    }
}
